package zookeeper;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.ZooKeeper;

public class SyncTest3 {

	
	private static final Log log = LogFactory.getLog(SyncTest3.class);
	
	
	public static void main(String[] args) {
		ZooKeeper zk = ZooKeeperUtil.initZooKeeper();
		try {
			zk.delete(SyncTest2.watcher+"/demo1", -1);
			
		} catch (KeeperException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
